<template>
  <section v-if="value.length > 0">
    <span v-for="(item, index) in value" :key="index">
      {{ item.roleName || item[filedName] || item }}
      <span v-if="index !== value.length - 1">；</span>
    </span>
  </section>
  <section v-else>--</section>
</template>

<script>
export default {
  name: "ArrayColumn",
  props: {
    value: {
      type: Array,
      default: () => []
    },
    filedName: {
      String,
      default: ""
    }
  }
};
</script>
